Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

head & foot: make table.height optional, warn in table-header mixin #449

Merged

Conversation

buschtoens
Copy link
Collaborator

Fixes #446.

@buschtoens
Copy link
Collaborator Author

When no height attribute is specified, only a warning is printed:

WARNING: You did not set a height attribute for your table, but marked a header or footer to be fixed. This means that you have to set the table height via CSS. For more information please refer to: #446

let fixed = this.get('fixed');
let height = this.get('sharedOptions.height');

warn(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't be necessary as warn is supposed to be an empty function in a production build. I have not actually verified this though.

https://www.emberjs.com/api/#method_warn

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just checked Ember.warn in our production deployment. It's indeed an empty function. 😄

@buschtoens buschtoens merged commit b621c5d into adopted-ember-addons:master Jul 5, 2017
@buschtoens buschtoens deleted the 446-warning-height branch July 5, 2017 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants